public class Test {
    public static void main(String[] args) {
        HashBucket hb = new HashBucket();
        hb.put(1,1);
        hb.put(5,5);
        hb.put(3,3);
        hb.put(4,4);
        hb.put(12,12);
        hb.put(11,11);
        hb.put(15,15);
        System.out.println("=======");

        HashBucket2<Person,String> hb2 = new HashBucket2<>();
        Person p1 = new Person("zhangshan");
        Person p2 = new Person("zhangshan");
        //System.out.println(p1.hashCode());
        //System.out.println(p2.hashCode());

        hb2.put(p1,"zhangshan");
        System.out.println(hb2.get(p2));
    }
}
